//
//  Ext+UIBarButton.swift
//  langligelang
//
//  Created by 秦－政 on 2016/10/22.
//  Copyright © 2016年 pete. All rights reserved.
//

import UIKit

extension UIBarButtonItem{
    
    /// UIBarButtonItem
    ///
    /// - parameter setHighlightedImgName: 图片名字
    /// - parameter target:                target
    /// - parameter action:                action
    ///
    /// - returns:
    convenience init(setHighlightedImgName: String? = nil, title:String? = nil, target: Any, action: Selector) {
        // 实例化本身
        self.init()
        // 利用按键的便利构造函数生成一个按键
        let buttonI = UIButton(setHighlightedImgName: setHighlightedImgName, titile: title, target: target, action: action)
        self.customView = buttonI // customView是什么东西
  
    }
    
    
}
